﻿namespace Example.Structural.Composite
{
    using System.Collections.ObjectModel;
    using System.Linq;

    public sealed class Folder : Collection<ISize>, 
                                 ISize
    {
        public int Bytes
        {
            get
            {
                return this.Sum(item => item.Bytes);
            }
        }
    }
}